<?php
/**
 * 创建一个任务
 *
 */
include('Redis/Common_redis_model.php');
class CI_Redis 
{
	public $redis_class=false;
	public function __construct($params = array())
	{
		extract($params);
		$class = ucfirst(strtolower($model));
		include_once 'Redis/Models/'.$model.'.php';
		$params['channel'] = 'mala.im:'.$params['channel'];
		$this->redis_class = new $class($params);
	}
}